<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文字扫光2</title>
    <style>
    .slideShine{
        background:#adadad -webkit-linear-gradient(left,transparent, #111 90%, transparent) no-repeat 0 0;
        background-size:20% 100%; 
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 36px;
        text-align: center;
        font-weight: bold;
        text-decoration: underline;
   }
   .slideShine {-webkit-animation: slideShine 2s linear infinite;animation: slideShine 2s linear infinite;}
   @-webkit-keyframes slideShine {
        0% {
             background-position: 0 0;
           }
        100% {
             background-position: 100% 100%;
         }
    }
    @keyframes slideShine {
         0% {background-position: 0 0; }
        100% {background-position: 100% 100%; }
    }
    </style>
</head>
<body>
   <p class="slideShine" >→css3文字渐变动画效果 >></p> 
</body>
</html>